package com.djhu.msg.annotation.plugin;


import java.util.Map;
import java.util.Properties;

/**
 * Created by zw on 2018/3/16.
 */
@Intercepts(
        {
                @Signature(type = Map.class, method = "get", args = {Object.class})}
)
public class MsgPlugin implements Interceptor {
    @Override
    public Object intercept(Invocation invocation) throws Throwable {
        return invocation.proceed();
        //return null;
    }

    @Override
    public Object plugin(Object target) {
        return Plugin.wrap(target,this);
    }

    @Override
    public void setProperties(Properties properties) {

    }
}